import 'package:json_annotation/json_annotation.dart';
import 'package:lovify/models/enums/theme.dart';
import 'base_entity.dart';

part 'setting.g.dart';

@JsonSerializable()
class Setting extends BaseEntity {
  final String? userId;
  final Theme theme;

  Setting({
    super.id,
    super.created,
    super.updated,
    super.deleted,
    this.userId,
    this.theme = Theme.crimson,
  });

  factory Setting.fromJson(Map<String, dynamic> json) =>
      _$SettingFromJson(json);

  @override
  Map<String, dynamic> toJson() => _$SettingToJson(this);
}
